:host ::deep .hardware-prompt-shell .mud-dialog-paper {
    width: min(420px, 100%);
    margin: 0 auto;
    border-radius: 28px;
}

.hardware-prompt-dialog {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 100%;
}

.hardware-prompt-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.hardware-passphrase-input {
    width: 100%;
}

.hardware-prompt-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

@media (max-width: 520px) {
    :host ::deep .hardware-prompt-shell .mud-dialog-paper {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        margin: 0;
    }

    .hardware-prompt-dialog {
        padding: 1rem;
        gap: 0.75rem;
    }

    .hardware-prompt-actions {
        padding: 0 1rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
}
